﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Sample_AppDataSet" targetNamespace="http://tempuri.org/Sample_AppDataSet.xsd" xmlns:mstns="http://tempuri.org/Sample_AppDataSet.xsd" xmlns="http://tempuri.org/Sample_AppDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="Sample_AppConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Sample_AppConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Sample_App1.Properties.Settings.GlobalReference.Default.Sample_AppConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Sample_AppTableAdapter" GeneratorDataComponentClassName="Sample_AppTableAdapter" Name="Sample_App" UserDataComponentName="Sample_AppTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Sample_AppConnectionString (Settings)" DbObjectName="Sample_App.dbo.Sample_App" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Sample_App] WHERE (([Age] = @Original_Age) AND ((@IsNull_First_Name = 1 AND [First_Name] IS NULL) OR ([First_Name] = @Original_First_Name)) AND ((@IsNull_Last_Name = 1 AND [Last_Name] IS NULL) OR ([Last_Name] = @Original_Last_Name)) AND ((@IsNull_Marks_Obtained = 1 AND [Marks_Obtained] IS NULL) OR ([Marks_Obtained] = @Original_Marks_Obtained)) AND ([Roll_Number] = @Original_Roll_Number))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Age" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Age" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_First_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_First_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Last_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Last_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Marks_Obtained" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Marks_Obtained" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Roll_Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Roll_Number" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Sample_App] ([Age], [First_Name], [Last_Name], [Marks_Obtained]) VALUES (@Age, @First_Name, @Last_Name, @Marks_Obtained);
SELECT Age, First_Name, Last_Name, Marks_Obtained, Roll_Number FROM Sample_App WHERE (Roll_Number = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Age" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Age" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@First_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Last_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Marks_Obtained" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Age, First_Name, Last_Name, Marks_Obtained, Roll_Number FROM dbo.Sample_App</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Sample_App] SET [Age] = @Age, [First_Name] = @First_Name, [Last_Name] = @Last_Name, [Marks_Obtained] = @Marks_Obtained WHERE (([Age] = @Original_Age) AND ((@IsNull_First_Name = 1 AND [First_Name] IS NULL) OR ([First_Name] = @Original_First_Name)) AND ((@IsNull_Last_Name = 1 AND [Last_Name] IS NULL) OR ([Last_Name] = @Original_Last_Name)) AND ((@IsNull_Marks_Obtained = 1 AND [Marks_Obtained] IS NULL) OR ([Marks_Obtained] = @Original_Marks_Obtained)) AND ([Roll_Number] = @Original_Roll_Number));
SELECT Age, First_Name, Last_Name, Marks_Obtained, Roll_Number FROM Sample_App WHERE (Roll_Number = @Roll_Number)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Age" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Age" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@First_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Last_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Marks_Obtained" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Age" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Age" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_First_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_First_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="First_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Last_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Last_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Last_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Marks_Obtained" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Marks_Obtained" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Marks_Obtained" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Roll_Number" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Roll_Number" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Roll_Number" ColumnName="Roll_Number" DataSourceName="Sample_App.dbo.Sample_App" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Roll_Number" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Roll_Number" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Age" DataSetColumn="Age" />
              <Mapping SourceColumn="First_Name" DataSetColumn="First_Name" />
              <Mapping SourceColumn="Last_Name" DataSetColumn="Last_Name" />
              <Mapping SourceColumn="Marks_Obtained" DataSetColumn="Marks_Obtained" />
              <Mapping SourceColumn="Roll_Number" DataSetColumn="Roll_Number" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Sample_AppDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Sample_AppDataSet" msprop:Generator_UserDSName="Sample_AppDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Sample_App" msprop:Generator_TableClassName="Sample_AppDataTable" msprop:Generator_TableVarName="tableSample_App" msprop:Generator_TablePropName="Sample_App" msprop:Generator_RowDeletingName="Sample_AppRowDeleting" msprop:Generator_UserTableName="Sample_App" msprop:Generator_RowChangingName="Sample_AppRowChanging" msprop:Generator_RowEvHandlerName="Sample_AppRowChangeEventHandler" msprop:Generator_RowDeletedName="Sample_AppRowDeleted" msprop:Generator_RowEvArgName="Sample_AppRowChangeEvent" msprop:Generator_RowChangedName="Sample_AppRowChanged" msprop:Generator_RowClassName="Sample_AppRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Age" msprop:Generator_ColumnVarNameInTable="columnAge" msprop:Generator_ColumnPropNameInRow="Age" msprop:Generator_ColumnPropNameInTable="AgeColumn" msprop:Generator_UserColumnName="Age">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="First_Name" msprop:Generator_ColumnVarNameInTable="columnFirst_Name" msprop:Generator_ColumnPropNameInRow="First_Name" msprop:Generator_ColumnPropNameInTable="First_NameColumn" msprop:Generator_UserColumnName="First_Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Last_Name" msprop:Generator_ColumnVarNameInTable="columnLast_Name" msprop:Generator_ColumnPropNameInRow="Last_Name" msprop:Generator_ColumnPropNameInTable="Last_NameColumn" msprop:Generator_UserColumnName="Last_Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Marks_Obtained" msprop:Generator_ColumnVarNameInTable="columnMarks_Obtained" msprop:Generator_ColumnPropNameInRow="Marks_Obtained" msprop:Generator_ColumnPropNameInTable="Marks_ObtainedColumn" msprop:Generator_UserColumnName="Marks_Obtained" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Roll_Number" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnRoll_Number" msprop:Generator_ColumnPropNameInRow="Roll_Number" msprop:Generator_ColumnPropNameInTable="Roll_NumberColumn" msprop:Generator_UserColumnName="Roll_Number" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Sample_App" />
      <xs:field xpath="mstns:Roll_Number" />
    </xs:unique>
  </xs:element>
</xs:schema>